<?php
require_once 'siteConfig.php';
/**
 * 
 * Establish the connection to the DB server 
 */

try{	
	$db = new PDO("mysql:host={$host};dbname={$db_name}", $username, $password);
	$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(PDOException $e){
	die ('Kunne ikke koble til database serveren: '. $e->getMessage());
}
?>